#include "JobTimer.h"

using namespace drogon;

#if defined(_MSC_VER)
#define _PluginExport  __declspec(dllexport)
#else
#define _PluginExport
#endif


#ifndef OC_STATIC_LIB
extern "C" void _PluginExport dllStartPlugin();
extern "C" void _PluginExport dllStopPlugin();

JobTimer timer;
extern "C" void _PluginExport dllStartPlugin()
{
	timer.start();
}

extern "C" void _PluginExport dllStopPlugin()
{
	timer.stop();
}

#endif
